package com.etoc.test.poi.model;

import java.math.BigDecimal;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelIgnore;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

@ExcelTarget(id="产品编码",beginRowIndex=4)
public class ProductInfo {
	@ExcelIgnore
	@Excel(exportName="产品编码",orderNum="1")
	private String productNo;
	@Excel(exportName="产品名称",orderNum="2")
	private String productName;
	@Excel(exportName="单价",orderNum="3")
	private BigDecimal productPrice;
	@Excel(exportName="成功数量",orderNum="4")
	private Integer sucesNum;
	@Excel(exportName="原价",orderNum="5")
	private BigDecimal productMoney;
	@Excel(exportName="折扣",orderNum="6")
	private BigDecimal salesDiscount;
	@Excel(exportName="成功金额(折后)",orderNum="7")
	private BigDecimal salesMoney;
	@Excel(exportName="备注",orderNum="8")
	private String comment;
	
	public ProductInfo() {
		super();
	}
	
	public ProductInfo(String productNo, String productName, BigDecimal productPrice) {
		super();
		this.productNo = productNo;
		this.productName = productName;
		this.productPrice = productPrice;
	}

	public String getProductNo() {
		return productNo;
	}
	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public BigDecimal getProductPrice() {
		return productPrice.setScale(4, BigDecimal.ROUND_HALF_UP);
	}
	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}
	public Integer getSucesNum() {
		return sucesNum;
	}
	public void setSucesNum(Integer sucesNum) {
		this.sucesNum = sucesNum;
	}
	public BigDecimal getProductMoney() {
		return productMoney.setScale(4, BigDecimal.ROUND_HALF_UP);
	}
	public void setProductMoney(BigDecimal productMoney) {
		this.productMoney = productMoney;
	}
	public BigDecimal getSalesDiscount() {
		return salesDiscount.setScale(4, BigDecimal.ROUND_HALF_UP);
	}
	public void setSalesDiscount(BigDecimal salesDiscount) {
		this.salesDiscount = salesDiscount;
	}
	public BigDecimal getSalesMoney() {
		return salesMoney.setScale(4, BigDecimal.ROUND_HALF_UP);
	}
	public void setSalesMoney(BigDecimal salesMoney) {
		this.salesMoney = salesMoney;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
}
